import request from '@/utils/request.js'
export function subjectList (params) {
  return request({
    url: '/subject/list',
    method: 'get',
    params
  })
}
// 学科状态
export function subjectStatus (data) {
  return request({
    url: '/subject/status',
    method: 'POST',
    data
  })
}
// 新增学科
export function subjectAdd (data) {
  return request({
    url: '/subject/add',
    method: 'POST',
    data
  })
}
// 学科编辑
export function subjectEdit (data) {
  return request({
    url: '/subject/edit',
    method: 'POST',
    data
  })
}
// 学科删除
export function subjectRemove (id) {
  return request({
    url: '/subject/remove',
    method: 'POST',
    data: {
      id
    }
  })
}
